#include <iostream>

using namespace std;

int main() {

#if 0
    int a;
    a = 666;
    cout << "a = " << a << endl;

    int b = 888;
    cout << "b = " << b << endl;
#endif

#if 0
    int a = 2, b = 3, c = 4;

    // a + b = c;   // ?
    c = a + b;

    cout << "c = " << c << "\n";
#endif


#if 0
    // 隐式强转
    // int a = 5, b = 6;
    // cout << "a和b的平均数: " << (a+b)/2 << endl;

    // 显式强转
    int a = 5, b = 6;
    cout << "a和b的平均数: " << ((float)a+b)/2 << endl;
    // cout << "a和b的平均数: " << (a+b)/2.0 << endl;   // 隐式强转
#endif

#if 0
    int a = 3, b = 4;
    int tmp;

    tmp = a;
    a = b;
    b = tmp;

    cout << "a = " << a << ", b = " << b << endl;
#endif



    return 0;
}
